﻿using Microsoft.Extensions.Logging;

namespace LS.Screening.Core
{
    /// <summary>
    /// 日志抽象基类
    /// </summary>
    public abstract class AbstractLogObject
    {
        /// <summary>
        /// APP类型
        /// </summary>
        public AppType? AppType { get; set; }

        /// <summary>
        /// App名称
        /// </summary>
        public string AppName { get; set; }

        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServiceName { get; set; }

        /// <summary>
        /// 方法名称
        /// </summary>
        public string MethodName { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public object Parameters { get; set; }

        /// <summary>
        /// 日志级别
        /// </summary>
        public LogLevel? LogLevel { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public string Tags { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }
    }
}
